import request from '@/utils/request'

// 查询用户家属基础信息列表
export function listFamilyBasicInformation(query) {
  return request({
    url: '/information/familyBasicInformation/list',
    method: 'get',
    params: query
  })
}

// 查询用户家属基础信息详细
export function getFamilyBasicInformation(id) {
  return request({
    url: '/information/familyBasicInformation/' + id,
    method: 'get'
  })
}

// 新增用户家属基础信息
export function addFamilyBasicInformation(data) {
  return request({
    url: '/information/familyBasicInformation',
    method: 'post',
    data: data
  })
}

// 修改用户家属基础信息
export function updateFamilyBasicInformation(data) {
  return request({
    url: '/information/familyBasicInformation',
    method: 'put',
    data: data
  })
}

// 删除用户家属基础信息
export function delFamilyBasicInformation(id) {
  return request({
    url: '/information/familyBasicInformation/' + id,
    method: 'delete'
  })
}
